Skip to content

Build child process tree in windows using wmic#8

Merged
benmerckx merged 2 commits intobenmerckx:masterfrom
jefvel:patch-1
Feb 3, 2025
Merged

Build child process tree in windows using wmic#8
benmerckx merged 2 commits intobenmerckx:masterfrom
jefvel:patch-1

Conversation

@jefvel
Copy link
Copy Markdown
Contributor

@jefvel jefvel commented Jan 28, 2025

On windows it would only find the process for the cmd process, and in some cases it would not kill its spawned process. This PR uses wmic to find its child PIDs and kill them too.

Also use SIGTERM instead of SIGKILL when terminating running processes. This gives the running application room to exit gracefully instead of being forcefully closed.

jefvel and others added 2 commits January 28, 2025 21:24
This gives the running application room to exit gracefully instead of being forcefully closed.
@jefvel jefvel changed the title Use SIGTERM instead of SIGKILL when terminating running processes Build child process tree in windows using wmic Feb 1, 2025
@benmerckx benmerckx merged commit f5d451f into benmerckx:master Feb 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants